 /**
 * Description: 系统角色vo
 * Copyright:Copyright 2018 nfky.com. All rights reserved
 * @author:xk
 * @since:0.0.1
 * Create at:2018-01-10 下午 19:40:19
 *  
 * Modification History:
 * Date         Author      Version     Description
 * ------------------------------------------------------------------
 * 2018-01-10   xk       0.0.1     Initial
 */
package com.metro.paperless.sys.beans.vo;

import com.metro.core.user.Role;
import com.metro.paperless.common.beans.constant.DicTypeEnum;
import com.metro.paperless.common.utils.DicUtil;
import lombok.Data;
import lombok.EqualsAndHashCode;
import com.metro.paperless.sys.beans.entity.SysRoleEntity;

 /**
 * 系统角色vo<br>
 *
 * @author xk
 * @since [0.0.1]
 * @version [0.0.1, 2018-01-10]
 */
@Data()
@EqualsAndHashCode(callSuper = false)
public class SysRole extends SysRoleEntity implements Role {
     /**
      * 获取模块名称
      */
     public String getSubsysStr() {
         return DicUtil.getName(DicTypeEnum.SUB_SYSTEM, super.getSubsysCode());
     }

     /**
      * 获取角色id
      *
      * @return 角色id
      */
     @Override
     public Long getRoleId() {
         return super.getId();
     }

     /**
      * 获取角色名称
      *
      * @return 角色名称
      */
     @Override
     public String getRoleName() {
         return super.getName();
     }

     /**
      * 获取角色编码
      *
      * @return 角色编码
      */
     @Override
     public String getRoleCode() {
         return super.getCode();
     }
}
